(function(){
	var obj;
	obj.ajax=function(type,url,data,headers,context,callback){
		$.ajax({
			type:type,
			data:JSON.stringify(data),
			url:url,
			headers:headers,
			context:context //传入的this对象，默认是xhr对象
		}).done(callback);
	}
	window.j=obj;//global
	
	
	function CustomerConponent(template){
		this.model = null;
		this.template = template;
		this.addCustomer=function(customer){
			
		}
		this.updateCustomer=function(customer){
			
		}
		this.findAll=function(){
			
		}
		
		function _render(data){
			this.template.empty();
			
		}
	}
})();